package br.com.social.mobile.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="TB_POSITION")
public class Position extends AbstractEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1846067492058752646L;

	@Column(name="NU_IMEI")
	private Long nuImei;
	
	@Column(name="NU_LATITUDE")
	private Double nuLatitude;		
	
	@Column(name="NU_LONGITUDE")
	private Double nuLongitude;
	
	@Column(name="NU_ACCURACY")
	private Double nuAccuracy;	
	
	@Column(name="NU_SPEED")
	private Double nuSpeed;	
	
	@Column(name="DS_PROVIDER")
	private String dsProvider;	

	@Column(name="DT_POSITION")
	private Date dtPosition;
	
	@Column(name="DT_INSERTED")
	private Date dtInserted;

	public Long getNuImei() {
		return nuImei;
	}

	public void setNuImei(Long nuImei) {
		this.nuImei = nuImei;
	}

	public Double getNuLatitude() {
		return nuLatitude;
	}

	public void setNuLatitude(Double nuLatitude) {
		this.nuLatitude = nuLatitude;
	}

	public Double getNuLongitude() {
		return nuLongitude;
	}

	public void setNuLongitude(Double nuLongitude) {
		this.nuLongitude = nuLongitude;
	}

	public Double getNuAccuracy() {
		return nuAccuracy;
	}

	public void setNuAccuracy(Double nuAccuracy) {
		this.nuAccuracy = nuAccuracy;
	}

	public Double getNuSpeed() {
		return nuSpeed;
	}

	public void setNuSpeed(Double nuSpeed) {
		this.nuSpeed = nuSpeed;
	}

	public String getDsProvider() {
		return dsProvider;
	}

	public void setDsProvider(String dsProvider) {
		this.dsProvider = dsProvider;
	}

	public Date getDtPosition() {
		return dtPosition;
	}

	public void setDtPosition(Date dtPosition) {
		this.dtPosition = dtPosition;
	}

	public Date getDtInserted() {
		return dtInserted;
	}

	public void setDtInserted(Date dtInserted) {
		this.dtInserted = dtInserted;
	}

	@Override
	public String toString() {
		return "Position [nuImei=" + nuImei + ", nuLatitude=" + nuLatitude
				+ ", nuLongitude=" + nuLongitude + ", nuAccuracy=" + nuAccuracy
				+ ", nuSpeed=" + nuSpeed + ", dsProvider=" + dsProvider
				+ ", dtPosition=" + dtPosition + ", dtInserted=" + dtInserted
				+ "]";
	}

}